import request from '@/utils/request'

// 查询收购记录详细记录列表
export function listPurchaseRecordDetailLog(query) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog/list',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function dailyPurchaseRecordDetailLog(query) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog/daily',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function dailySummaryPurchaseRecordDetailLog(query) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog/dailySummary',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function monthlyPurchaseRecordDetailLog(query) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog/monthly',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function monthlySummaryPurchaseRecordDetailLog(query) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog/monthlySummary',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function yearlyPurchaseRecordDetailLog(query) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog/yearly',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function yearlySummaryPurchaseRecordDetailLog(query) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog/yearlySummary',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录详细
export function getPurchaseRecordDetailLog(id) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog/' + id,
    method: 'get'
  })
}

// 新增收购记录详细记录
export function addPurchaseRecordDetailLog(data) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog',
    method: 'post',
    data: data
  })
}

// 修改收购记录详细记录
export function updatePurchaseRecordDetailLog(data) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog',
    method: 'put',
    data: data
  })
}

// 删除收购记录详细记录
export function delPurchaseRecordDetailLog(id) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog/' + id,
    method: 'delete'
  })
}

// 导出收购记录详细记录
export function exportPurchaseRecordDetailLog(query) {
  return request({
    url: '/console/rpt/purchaseRecordDetailLog/export',
    method: 'get',
    params: query
  })
}
